<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<%@ include file="../include/top.jsp"%>
<%@ include file="../include/errorArea.jsp"%>
<%@ include file="../include/message-save.jsp" %>
<script type="text/javascript">
	function saveReply(){
		$("#replyInputForm").submit();
	}
</script>
</head>

<body>
	<form action="${baseURL}/productComment/saveCommentReply" method="post" name="replyInputForm" id="replyInputForm">
		<input type="hidden" name="id" value="${obj.id}"/>
		<input type="hidden" name="orderId" value="${obj.orderId}"/>
		<input type="hidden" name="productId" value="${obj.productId}"/>
		<input type="hidden" name="userId" value="${obj.userId}"/>
		<input type="hidden" name="score" value="${obj.score}"/>
		<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
			<tr>
				<td width="20%">商品名称：</td>
				<td width="80%"><c:out value="${obj.productName}" escapeXml="true" /><br /><br /></td>
			</tr>
			<tr>
				<td>评论：</td>
				<td><c:out value="${obj.content}" escapeXml="true" /><br /><br /></td>
			</tr>
			<tr>
				<td>回复：</td>
				<td>
					<textarea rows="5" cols="50" name="commentRreply" >${obj.commentRreply}</textarea>
				</td>
			</tr>
		</table>
		<table width="100%" height="100%" useColor="false" useClick="false">
			<tr align="center">
				<td colspan="4"><button onclick="saveReply();">回复</button>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>